









package com.company.k1dailimoshi.dynamic.section2;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @author cbf4Life cbf4life@126.com
 * I'm glad to share my knowledge with you all.
 */
public class MyInvocationHandler implements InvocationHandler {
	
	private Object target = null;
	
	public MyInvocationHandler(Object _obj){
		this.target = _obj;
	}
	
	public Object invoke(Object proxy, Method method, Object[] args)
			throws Throwable {
		
		return method.invoke(this.target, args);
	}
}